// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(74,1) == 0;
	question = "special";
	text1 = "You hike into the more remote depths of the Dera Reaches. This barren expanse is far from any sizable source of water, and it shows. The sun beats down upon you harshly, and dust immediately starts to crust around your nostrils.";
	text2 = "And yet, there is life, a bold testimonial to the cunning and skill of the Shapers. The 'trees' they have created, part fungus, part cactus, grow all around you. They are parched, scraggly, and covered with thorns, but they live.";
	text3 = "And rogues live also. Created by rebels and sent into the wastes, packs of powerful creations walk up and down the roads, looking for prey. They are completely rogue, maddened by thirst, and eager to attack anything they see.";
	text4 = "They will all be dead soon. And then, no doubt, a rebel Lifecrafter will slip onto the southern shore, make a host of creations, and send them out to fight and die. It is cruel, but that is war.";
	text5 = "It looks like the Shapers built several pacification pylons to secure the road, but, from this distance, it doesn't look like any of them are working. A typical failure for those devices.";
	text6 = "Without some sort of aid, clearing the rogues on the road will be very, very difficult.";
	action = SET_SDF 74 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(74,2) == 0;
	question = "special";
	text1 = "You enter a low building, made of rough sandstone blocks. The humble structure contains a set of brand new, high-quality Shaper machinery. There is a pair of large crystals, fully charged with power and connected to a device by the back wall.";
	text2 = "The machine, however, is dormant. The heat and sand has gummed it up, and it sits there uselessly.";
	action = SET_SDF 74 2 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The obelisk says:";
	text2 = "  KAYAR'S SPIRE";
	text3 = "  CELL BLOCK DELIVERIES/ACCESS";
	
begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Zephyr Oasis - Northwest";
	text3 = "  Kayar's Spire - South";
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Warning - Deadly Rogue Infestation Ahead";
	text3 = "  Use Alternate Route";

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You examine the device. It is still running, but sand is already starting to accumulate in the oiled gears. You reach in and clean it out, buying yourself a little bit more time, but this machine won't be running for long.";
	text2 = "You open the hatch at the base of this device and look inside. What you see doesn't surprise you.";
	text3 = "The clockwork gears and crystal that channel power from the crystals inside this building to the conduits outside are gummed up with sand and grit. When it gets too clogged, it shuts down automatically to protect the works.";
	text4 = "You might be able to clean it out and get power flowing again. It would only work for a short time, though.";
	code =
		if (gf(74,20) > 0) {
			sf(74,20,3);
			rs(2); rs(3); rs(4);
			}
			else rs(1);
	break;
	
begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = gf(74,20) == 0 && get_stat(21) < 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You soon realize that you lack the skill and delicacy to clean the device out sufficiently without damaging it.";
	text2 = "You close the panel and leave the machine alone.";
	action = END_TALK;
	
begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = gf(74,20) == 0 && get_stat(21) >= 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You just barely have adequate skill and delicacy to clean the device out sufficiently without damaging it. Soon, with a little hum, the device starts power flowing again.";
	text2 = "However, the damage here is great. Too much of the dirt has been allowed to get deep into the works. You suspect that this particular device will only run a short time before it shuts down again.";
	action = END_TALK;
	code =
		sf(74,20,3);
	break;
	
begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "You decide that there isn't anything useful you can do here right now.";
	action = END_TALK;



//

begintalknode 20;
	state = -1;
	nextstate = 20;
	condition = 1;
	question = "Name";
	text1 = "You examine the device. It is still running, but sand is already starting to accumulate in the oiled gears. You reach in and clean it out, buying yourself a little bit more time, but this machine won't be running for long.";
	text2 = "You open the hatch at the base of this device and look inside. What you see doesn't surprise you.";
	text3 = "The clockwork gears and crystal that channel power from the crystals inside this building to the conduits outside are gummed up with sand and grit. When it gets too clogged, it shuts down automatically to protect the works.";
	text4 = "You might be able to clean it out and get power flowing again. It would only work for a short time, though.";
	code =
		if (gf(74,21) > 0) {
			sf(74,21,10);
			rs(2); rs(3); rs(4);
			}
			else rs(1);
	break;
	
begintalknode 21;
	state = 20;
	nextstate = -1;
	condition = gf(74,21) == 0 && get_stat(21) < 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You soon realize that you lack the skill and delicacy to clean the device out sufficiently without damaging it.";
	text2 = "You close the panel and leave the machine alone.";
	action = END_TALK;
	
begintalknode 22;
	state = 20;
	nextstate = -1;
	condition = gf(74,21) == 0 && get_stat(21) >= 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You just barely have adequate skill and delicacy to clean the device out sufficiently without damaging it. Soon, with a little hum, the device starts power flowing again.";
	text2 = "However, a bit of dirt has been allowed to get deep into the works, and more of it is accumulating on the gears even as you watch. You suspect that this particular device will shut down again some time in the near future.";
	action = END_TALK;
	code =
		sf(74,21,10);
	break;
	
begintalknode 23;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "You decide that there isn't anything useful you can do here right now.";
	action = END_TALK;
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "You examine the device. It is still running, but sand is already starting to accumulate in the oiled gears. You reach in and clean it out, buying yourself a little bit more time, but this machine won't be running for long.";
	text2 = "You open the hatch at the base of this device and look inside. What you see doesn't surprise you.";
	text3 = "The clockwork gears and crystal that channel power from the crystals inside this building to the conduits outside are gummed up with sand and grit. When it gets too clogged, it shuts down automatically to protect the works.";
	text4 = "You might be able to clean it out and get power flowing again. It would only work for a short time, though.";
	code =
		if (gf(74,22) > 0) {
			sf(74,22,10);
			rs(2); rs(3); rs(4);
			}
			else rs(1);
	break;
	
begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = gf(74,21) == 0 && get_stat(21) < 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You soon realize that you lack the skill and delicacy to clean the device out sufficiently without damaging it.";
	text2 = "You close the panel and leave the machine alone.";
	action = END_TALK;
	
begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = gf(74,22) == 0 && get_stat(21) >= 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You just barely have adequate skill and delicacy to clean the device out sufficiently without damaging it. Soon, with a little hum, the device starts power flowing again.";
	text2 = "However, a bit of dirt has been allowed to get deep into the works, and more of it is accumulating on the gears even as you watch. You suspect that this particular device will shut down again some time in the near future.";
	action = END_TALK;
	code =
		sf(74,22,10);
	break;
	
begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "You decide that there isn't anything useful you can do here right now.";
	action = END_TALK;


begintalknode 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "You examine the device. It is still running, but sand is already starting to accumulate in the oiled gears. You reach in and clean it out, buying yourself a little bit more time, but this machine won't be running for long.";
	text2 = "You open the hatch at the base of this device and look inside. What you see doesn't surprise you.";
	text3 = "The clockwork gears and crystal that channel power from the crystals inside this building to the conduits outside are gummed up with sand and grit. When it gets too clogged, it shuts down automatically to protect the works.";
	text4 = "You might be able to clean it out and get power flowing again. It would only work for a short time, though.";
	code =
		if (gf(74,23) > 0) {
			sf(74,23,10);
			rs(2); rs(3); rs(4);
			}
			else rs(1);
	break;
	
begintalknode 41;
	state = 40;
	nextstate = -1;
	condition = gf(74,23) == 0 && get_stat(21) < 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You soon realize that you lack the skill and delicacy to clean the device out sufficiently without damaging it.";
	text2 = "You close the panel and leave the machine alone.";
	action = END_TALK;
	
begintalknode 42;
	state = 40;
	nextstate = -1;
	condition = gf(74,23) == 0 && get_stat(21) >= 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You just barely have adequate skill and delicacy to clean the device out sufficiently without damaging it. Soon, with a little hum, the device starts power flowing again.";
	text2 = "However, a bit of dirt has been allowed to get deep into the works, and more of it is accumulating on the gears even as you watch. You suspect that this particular device will shut down again some time in the near future.";
	action = END_TALK;
	code =
		sf(74,23,10);
	break;
	
begintalknode 43;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "You decide that there isn't anything useful you can do here right now.";
	action = END_TALK;


begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "You examine the device. It is still running, but sand is already starting to accumulate in the oiled gears. You reach in and clean it out, buying yourself a little bit more time, but this machine won't be running for long.";
	text2 = "You open the hatch at the base of this device and look inside. What you see doesn't surprise you.";
	text3 = "The clockwork gears and crystal that channel power from the crystals inside this building to the conduits outside are gummed up with sand and grit. When it gets too clogged, it shuts down automatically to protect the works.";
	text4 = "You might be able to clean it out and get power flowing again. It would only work for a short time, though.";
	code =
		if (gf(74,24) > 0) {
			sf(74,24,10);
			rs(2); rs(3); rs(4);
			}
			else rs(1);
	break;
	
begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = gf(74,24) == 0 && get_stat(21) < 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You soon realize that you lack the skill and delicacy to clean the device out sufficiently without damaging it.";
	text2 = "You close the panel and leave the machine alone.";
	action = END_TALK;
	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = gf(74,24) == 0 && get_stat(21) >= 12;
	question = "Get the machine running again.";
	text1 = "You grab a nearby brush and start scouring out the grit. You just barely have adequate skill and delicacy to clean the device out sufficiently without damaging it. Soon, with a little hum, the device starts power flowing again.";
	text2 = "However, a bit of dirt has been allowed to get deep into the works, and more of it is accumulating on the gears even as you watch. You suspect that this particular device will shut down again some time in the near future.";
	action = END_TALK;
	code =
		sf(74,24,10);
	break;
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "You decide that there isn't anything useful you can do here right now.";
	action = END_TALK;

	
begintalknode 60;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You examine this pacification pylon. It seems to be in good repair, but no power is flowing into it through the conduits running along the ground. It has enough power to keep spinning, but nothing else.";
	text3 = "You examine this pacification pylon. It is in good repair and functioning. It probably won't get power for long, though.";
	action = DEP_ON_SDF 74 16 0;
	
begintalknode 61;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You examine this pacification pylon. It seems to be in good repair, but no power is flowing into it through the conduits running along the ground. It has enough power to keep spinning, but nothing else.";
	text3 = "You examine this pacification pylon. It is in good repair and functioning. It probably won't get power for long, though.";
	action = DEP_ON_SDF 74 17 0;
	
begintalknode 62;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You examine this pacification pylon. It seems to be in good repair, but no power is flowing into it through the conduits running along the ground. It has enough power to keep spinning, but nothing else.";
	text3 = "You examine this pacification pylon. It is in good repair and functioning. It probably won't get power for long, though.";
	action = DEP_ON_SDF 74 18 0;
	
begintalknode 63;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You examine this pacification pylon. It seems to be in good repair, but no power is flowing into it through the conduits running along the ground. It has enough power to keep spinning, but nothing else.";
	text3 = "You examine this pacification pylon. It is in good repair and functioning. It probably won't get power for long, though.";
	action = DEP_ON_SDF 74 19 0;
	
begintalknode 64;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You examine this pacification pylon. It seems to be in good repair, but nobody has gotten around to installing it yet.";
	
	
	
	//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		